package maosui.model;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;

/**
 * Created by wdj on 14-8-10.
 */
@Entity
@javax.persistence.Table(name = "51lpz_decompany")
public class CompanyEntity {
    private int cid;

    @Id
    @javax.persistence.Column(name = "cid", nullable = false, insertable = true, updatable = true)
    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    private String publishname;

    @Basic
    @javax.persistence.Column(name = "publishname", nullable = true, insertable = true, updatable = true, length = 12)
    public String getPublishname() {
        return publishname;
    }

    public void setPublishname(String publishname) {
        this.publishname = publishname;
    }

    private String publishpost;

    @Basic
    @javax.persistence.Column(name = "publishpost", nullable = true, insertable = true, updatable = true, length = 25)
    public String getPublishpost() {
        return publishpost;
    }

    public void setPublishpost(String publishpost) {
        this.publishpost = publishpost;
    }

    private String publishimg;

    @Basic
    @javax.persistence.Column(name = "publishimg", nullable = true, insertable = true, updatable = true, length = 100)
    public String getPublishimg() {
        return publishimg;
    }

    public void setPublishimg(String publishimg) {
        this.publishimg = publishimg;
    }

    private String company;

    @Basic
    @javax.persistence.Column(name = "company", nullable = true, insertable = true, updatable = true, length = 50)
    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    private String phone;

    @Basic
    @javax.persistence.Column(name = "phone", nullable = true, insertable = true, updatable = true, length = 50)
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    private String email;

    @Basic
    @javax.persistence.Column(name = "email", nullable = true, insertable = true, updatable = true, length = 50)
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    private String gangtitle;

    @Basic
    @javax.persistence.Column(name = "gangtitle", nullable = false, insertable = true, updatable = true, length = 56)
    public String getGangtitle() {
        return gangtitle;
    }

    public void setGangtitle(String gangtitle) {
        this.gangtitle = gangtitle;
    }

    private String caddress;

    @Basic
    @javax.persistence.Column(name = "caddress", nullable = true, insertable = true, updatable = true, length = 100)
    public String getCaddress() {
        return caddress;
    }

    public void setCaddress(String caddress) {
        this.caddress = caddress;
    }

    private Integer worktype;

    @Basic
    @javax.persistence.Column(name = "worktype", nullable = true, insertable = true, updatable = true)
    public Integer getWorktype() {
        return worktype;
    }

    public void setWorktype(Integer worktype) {
        this.worktype = worktype;
    }

    private Integer zhitype;

    @Basic
    @javax.persistence.Column(name = "zhitype", nullable = true, insertable = true, updatable = true)
    public Integer getZhitype() {
        return zhitype;
    }

    public void setZhitype(Integer zhitype) {
        this.zhitype = zhitype;
    }

    private Integer hangtype;

    @Basic
    @javax.persistence.Column(name = "hangtype", nullable = true, insertable = true, updatable = true)
    public Integer getHangtype() {
        return hangtype;
    }

    public void setHangtype(Integer hangtype) {
        this.hangtype = hangtype;
    }

    private int butype;

    @Basic
    @javax.persistence.Column(name = "butype", nullable = false, insertable = true, updatable = true)
    public int getButype() {
        return butype;
    }

    public void setButype(int butype) {
        this.butype = butype;
    }

    private Integer zhuantype;

    @Basic
    @javax.persistence.Column(name = "zhuantype", nullable = true, insertable = true, updatable = true)
    public Integer getZhuantype() {
        return zhuantype;
    }

    public void setZhuantype(Integer zhuantype) {
        this.zhuantype = zhuantype;
    }

    private Integer entertype;

    @Basic
    @javax.persistence.Column(name = "entertype", nullable = true, insertable = true, updatable = true)
    public Integer getEntertype() {
        return entertype;
    }

    public void setEntertype(Integer entertype) {
        this.entertype = entertype;
    }

    private String number;

    @Basic
    @javax.persistence.Column(name = "number", nullable = true, insertable = true, updatable = true, length = 10)
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    private int location;

    @Basic
    @javax.persistence.Column(name = "location", nullable = false, insertable = true, updatable = true)
    public int getLocation() {
        return location;
    }

    public void setLocation(int location) {
        this.location = location;
    }

    private Integer schooltype;

    @Basic
    @javax.persistence.Column(name = "schooltype", nullable = true, insertable = true, updatable = true)
    public Integer getSchooltype() {
        return schooltype;
    }

    public void setSchooltype(Integer schooltype) {
        this.schooltype = schooltype;
    }

    private int provinceid;

    @Basic
    @javax.persistence.Column(name = "provinceid", nullable = false, insertable = true, updatable = true)
    public int getProvinceid() {
        return provinceid;
    }

    public void setProvinceid(int provinceid) {
        this.provinceid = provinceid;
    }

    private Integer homecity;

    @Basic
    @javax.persistence.Column(name = "homecity", nullable = true, insertable = true, updatable = true)
    public Integer getHomecity() {
        return homecity;
    }

    public void setHomecity(Integer homecity) {
        this.homecity = homecity;
    }

    private Integer classid;

    @Basic
    @javax.persistence.Column(name = "classid", nullable = true, insertable = true, updatable = true)
    public Integer getClassid() {
        return classid;
    }

    public void setClassid(Integer classid) {
        this.classid = classid;
    }

    private Integer payid;

    @Basic
    @javax.persistence.Column(name = "payid", nullable = true, insertable = true, updatable = true)
    public Integer getPayid() {
        return payid;
    }

    public void setPayid(Integer payid) {
        this.payid = payid;
    }

    private Integer timetype;

    @Basic
    @javax.persistence.Column(name = "timetype", nullable = true, insertable = true, updatable = true)
    public Integer getTimetype() {
        return timetype;
    }

    public void setTimetype(Integer timetype) {
        this.timetype = timetype;
    }

    private Timestamp timeend;

    @Basic
    @javax.persistence.Column(name = "timeend", nullable = true, insertable = true, updatable = true)
    public Timestamp getTimeend() {
        return timeend;
    }

    public void setTimeend(Timestamp timeend) {
        this.timeend = timeend;
    }

    private String zhize;

    @Basic
    @javax.persistence.Column(name = "zhize", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getZhize() {
        return zhize;
    }

    public void setZhize(String zhize) {
        this.zhize = zhize;
    }

    private String yaoqiu;

    @Basic
    @javax.persistence.Column(name = "yaoqiu", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getYaoqiu() {
        return yaoqiu;
    }

    public void setYaoqiu(String yaoqiu) {
        this.yaoqiu = yaoqiu;
    }

    private String huode;

    @Basic
    @javax.persistence.Column(name = "huode", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getHuode() {
        return huode;
    }

    public void setHuode(String huode) {
        this.huode = huode;
    }

    private String jieshao;

    @Basic
    @javax.persistence.Column(name = "jieshao", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getJieshao() {
        return jieshao;
    }

    public void setJieshao(String jieshao) {
        this.jieshao = jieshao;
    }

    private String fuli;

    @Basic
    @javax.persistence.Column(name = "fuli", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getFuli() {
        return fuli;
    }

    public void setFuli(String fuli) {
        this.fuli = fuli;
    }

    private int enterperson;

    @Basic
    @javax.persistence.Column(name = "enterperson", nullable = false, insertable = true, updatable = true)
    public int getEnterperson() {
        return enterperson;
    }

    public void setEnterperson(int enterperson) {
        this.enterperson = enterperson;
    }

    private Byte zhenjiaid;

    @Basic
    @javax.persistence.Column(name = "zhenjiaid", nullable = true, insertable = true, updatable = true)
    public Byte getZhenjiaid() {
        return zhenjiaid;
    }

    public void setZhenjiaid(Byte zhenjiaid) {
        this.zhenjiaid = zhenjiaid;
    }

    private Byte isShow;

    @Basic
    @javax.persistence.Column(name = "is_show", nullable = true, insertable = true, updatable = true)
    public Byte getIsShow() {
        return isShow;
    }

    public void setIsShow(Byte isShow) {
        this.isShow = isShow;
    }

    private int zhoume;

    @Basic
    @javax.persistence.Column(name = "zhoume", nullable = false, insertable = true, updatable = true)
    public int getZhoume() {
        return zhoume;
    }

    public void setZhoume(int zhoume) {
        this.zhoume = zhoume;
    }

    private int jiaqi;

    @Basic
    @javax.persistence.Column(name = "jiaqi", nullable = false, insertable = true, updatable = true)
    public int getJiaqi() {
        return jiaqi;
    }

    public void setJiaqi(int jiaqi) {
        this.jiaqi = jiaqi;
    }

    private int qita;

    @Basic
    @javax.persistence.Column(name = "qita", nullable = false, insertable = true, updatable = true)
    public int getQita() {
        return qita;
    }

    public void setQita(int qita) {
        this.qita = qita;
    }

    private int studentReady;

    @Basic
    @javax.persistence.Column(name = "student_ready", nullable = false, insertable = true, updatable = true)
    public int getStudentReady() {
        return studentReady;
    }

    public void setStudentReady(int studentReady) {
        this.studentReady = studentReady;
    }

    private int studentThrown;

    @Basic
    @javax.persistence.Column(name = "student_thrown", nullable = false, insertable = true, updatable = true)
    public int getStudentThrown() {
        return studentThrown;
    }

    public void setStudentThrown(int studentThrown) {
        this.studentThrown = studentThrown;
    }

    private int studentAgree;

    @Basic
    @javax.persistence.Column(name = "student_agree", nullable = false, insertable = true, updatable = true)
    public int getStudentAgree() {
        return studentAgree;
    }

    public void setStudentAgree(int studentAgree) {
        this.studentAgree = studentAgree;
    }

    private Timestamp instertime;

    @Basic
    @javax.persistence.Column(name = "instertime", nullable = true, insertable = true, updatable = true)
    public Timestamp getInstertime() {
        return instertime;
    }

    public void setInstertime(Timestamp instertime) {
        this.instertime = instertime;
    }

    private Timestamp updatetime;

    @Basic
    @javax.persistence.Column(name = "updatetime", nullable = true, insertable = true, updatable = true)
    public Timestamp getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CompanyEntity that = (CompanyEntity) o;

        if (butype != that.butype) return false;
        if (cid != that.cid) return false;
        if (enterperson != that.enterperson) return false;
        if (jiaqi != that.jiaqi) return false;
        if (location != that.location) return false;
        if (provinceid != that.provinceid) return false;
        if (qita != that.qita) return false;
        if (studentAgree != that.studentAgree) return false;
        if (studentReady != that.studentReady) return false;
        if (studentThrown != that.studentThrown) return false;
        if (zhoume != that.zhoume) return false;
        if (caddress != null ? !caddress.equals(that.caddress) : that.caddress != null) return false;
        if (classid != null ? !classid.equals(that.classid) : that.classid != null) return false;
        if (company != null ? !company.equals(that.company) : that.company != null) return false;
        if (email != null ? !email.equals(that.email) : that.email != null) return false;
        if (entertype != null ? !entertype.equals(that.entertype) : that.entertype != null) return false;
        if (fuli != null ? !fuli.equals(that.fuli) : that.fuli != null) return false;
        if (gangtitle != null ? !gangtitle.equals(that.gangtitle) : that.gangtitle != null) return false;
        if (hangtype != null ? !hangtype.equals(that.hangtype) : that.hangtype != null) return false;
        if (homecity != null ? !homecity.equals(that.homecity) : that.homecity != null) return false;
        if (huode != null ? !huode.equals(that.huode) : that.huode != null) return false;
        if (instertime != null ? !instertime.equals(that.instertime) : that.instertime != null) return false;
        if (isShow != null ? !isShow.equals(that.isShow) : that.isShow != null) return false;
        if (jieshao != null ? !jieshao.equals(that.jieshao) : that.jieshao != null) return false;
        if (number != null ? !number.equals(that.number) : that.number != null) return false;
        if (payid != null ? !payid.equals(that.payid) : that.payid != null) return false;
        if (phone != null ? !phone.equals(that.phone) : that.phone != null) return false;
        if (publishimg != null ? !publishimg.equals(that.publishimg) : that.publishimg != null) return false;
        if (publishname != null ? !publishname.equals(that.publishname) : that.publishname != null) return false;
        if (publishpost != null ? !publishpost.equals(that.publishpost) : that.publishpost != null) return false;
        if (schooltype != null ? !schooltype.equals(that.schooltype) : that.schooltype != null) return false;
        if (timeend != null ? !timeend.equals(that.timeend) : that.timeend != null) return false;
        if (timetype != null ? !timetype.equals(that.timetype) : that.timetype != null) return false;
        if (updatetime != null ? !updatetime.equals(that.updatetime) : that.updatetime != null) return false;
        if (worktype != null ? !worktype.equals(that.worktype) : that.worktype != null) return false;
        if (yaoqiu != null ? !yaoqiu.equals(that.yaoqiu) : that.yaoqiu != null) return false;
        if (zhenjiaid != null ? !zhenjiaid.equals(that.zhenjiaid) : that.zhenjiaid != null) return false;
        if (zhitype != null ? !zhitype.equals(that.zhitype) : that.zhitype != null) return false;
        if (zhize != null ? !zhize.equals(that.zhize) : that.zhize != null) return false;
        if (zhuantype != null ? !zhuantype.equals(that.zhuantype) : that.zhuantype != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = cid;
        result = 31 * result + (publishname != null ? publishname.hashCode() : 0);
        result = 31 * result + (publishpost != null ? publishpost.hashCode() : 0);
        result = 31 * result + (publishimg != null ? publishimg.hashCode() : 0);
        result = 31 * result + (company != null ? company.hashCode() : 0);
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (email != null ? email.hashCode() : 0);
        result = 31 * result + (gangtitle != null ? gangtitle.hashCode() : 0);
        result = 31 * result + (caddress != null ? caddress.hashCode() : 0);
        result = 31 * result + (worktype != null ? worktype.hashCode() : 0);
        result = 31 * result + (zhitype != null ? zhitype.hashCode() : 0);
        result = 31 * result + (hangtype != null ? hangtype.hashCode() : 0);
        result = 31 * result + butype;
        result = 31 * result + (zhuantype != null ? zhuantype.hashCode() : 0);
        result = 31 * result + (entertype != null ? entertype.hashCode() : 0);
        result = 31 * result + (number != null ? number.hashCode() : 0);
        result = 31 * result + location;
        result = 31 * result + (schooltype != null ? schooltype.hashCode() : 0);
        result = 31 * result + provinceid;
        result = 31 * result + (homecity != null ? homecity.hashCode() : 0);
        result = 31 * result + (classid != null ? classid.hashCode() : 0);
        result = 31 * result + (payid != null ? payid.hashCode() : 0);
        result = 31 * result + (timetype != null ? timetype.hashCode() : 0);
        result = 31 * result + (timeend != null ? timeend.hashCode() : 0);
        result = 31 * result + (zhize != null ? zhize.hashCode() : 0);
        result = 31 * result + (yaoqiu != null ? yaoqiu.hashCode() : 0);
        result = 31 * result + (huode != null ? huode.hashCode() : 0);
        result = 31 * result + (jieshao != null ? jieshao.hashCode() : 0);
        result = 31 * result + (fuli != null ? fuli.hashCode() : 0);
        result = 31 * result + enterperson;
        result = 31 * result + (zhenjiaid != null ? zhenjiaid.hashCode() : 0);
        result = 31 * result + (isShow != null ? isShow.hashCode() : 0);
        result = 31 * result + zhoume;
        result = 31 * result + jiaqi;
        result = 31 * result + qita;
        result = 31 * result + studentReady;
        result = 31 * result + studentThrown;
        result = 31 * result + studentAgree;
        result = 31 * result + (instertime != null ? instertime.hashCode() : 0);
        result = 31 * result + (updatetime != null ? updatetime.hashCode() : 0);
        return result;
    }
}
